---
title: "Built-in Tools"
description: "Learn how to use built-in tools in Agency Swarm."
icon: "wrench"
---
In the latest version, Agency Swarm leverages tools from the [Agents SDK](https://openai.github.io/openai-agents-python/ref/tool/). This provides access to a comprehensive set of production-ready tools maintained by OpenAI.

## Available Tools

The agents SDK provides the following built-in tools:

### Hosted Tools

- **`WebSearchTool`** - Lets an agent search the web
- **`FileSearchTool`** - Allows retrieving information from your OpenAI Vector Stores
- **`ComputerTool`** - Allows automating computer use tasks
- **`CodeInterpreterTool`** - Lets the LLM execute code in a sandboxed environment
- **`ImageGenerationTool`** - Generates images from a prompt
- **`LocalShellTool`** - Runs shell commands on your machine

### Function Tools

- **`FunctionTool`** - Custom function-based tools using the `@function_tool` decorator

### MCP (Model Context Protocol) Tools

- **`HostedMCPTool`** - Exposes a remote MCP server's tools to the model

**When to use each tool:**

- **Web Search**: Real-time information retrieval, current events, up-to-date data
- **File Search**: Enriching agent knowledge, reducing hallucinations, querying documents
- **Computer Tool**: Automating computer use tasks, UI interactions, testing applications
- **Code Interpreter**: Data analysis, calculations, executing code in a sandboxed environment
- **Image Generation**: Creating visual content, illustrations, design assets from prompts
- **Local Shell**: System administration, file operations, running shell commands
- **Function Tool**: Creating custom tools with specific business logic using Python functions
- **Hosted MCP Tool**: Accessing tools from remote Model Context Protocol servers

For detailed documentation and additional configuration options, refer to the [agents SDK tool documentation](https://openai.github.io/openai-agents-python/ref/tool/).
